#ifndef PERSON_H
#define PERSON_H
#include <istream>
#include <ostream>
#include <string>
using std::string;
using std::istream;
using std::ostream;

class Person {
    friend istream &read(istream &in, Person &p);
    friend ostream &print(ostream &out, Person &p);

   private:
    string name_ = "gaozy";
    string address_ = "Beijing";

   public:
    Person() = default;
    Person(string name) : name_(name){};
    Person(string name, string addr) : name_(name), address_(addr){};
    ~Person() {};
    string name() const { return name_; };
    string address() const { return address_; };
};

#endif /* PERSON_H */
